import { XInjectDao, _EngineEnume, Session } from "../../../com/lovebugs/Index"

import User from '../User'

var fs = require('fs');

var path = require('path');

const { exec } = require('child_process')

@XInjectDao(_EngineEnume.MySQL)
export default class IndexService {

    private _session: Session;

    constructor() {
    }

    async getUserById(id: any) {
        let a = await this._session.queryOneWith("select * from user_info where id = " + id, User);
        return a
    }


}